stack: skip first frame for animations
authorMatt Watson <mattdangerw@gmail.com>
Wed, 2 Mar 2016 01:19:50 +0000 (17:19 -0800)
committerMatt Watson <mattdangerw@gmail.com>
Fri, 8 Apr 2016 23:09:30 +0000 (16:09 -0700)
commit62b224a8dff39703bec39e13ea954b22029ba3df
tree5bbf181051e1f9c879430b14e3cafc8d21d5938f
parent3909f818c4d78afccd3243e06452c03556c67b42
stack: skip first frame for animations

Not the ideal solution for this problem, but in practice leads to
much better performance on lower end hardware.

Stack does a double draw on the first frame of its animation, of
both the old contents (into a cairo surface) and the new contents.
Homogeneous stacks only need to reallocate contents on the first
frame.

On lower powered hardware where our frames will be a good deal
slower than the refresh rate anyway, we can assure a smother
experience by waiting a frame to start tweening where frame duration
will be more consistent.
gtk/gtkstack.c